
#Goal for this example:

#build a c++11 library that express a c++11 public compile feature
#link a cuda library and verify it builds with c++11 enabled

#build a standalone c++/cuda mixed executable where we express a c++11
#compile feature.

#Note:
#
# I don't know if cuda should auto promote to c++11 if a c++ file requires
# it too.
# - cxx_constexpr is a good example
#


add_library(consume_features_lib STATIC static.cpp static.cu)
target_compile_features(consume_features_lib PUBLIC cxx_std_11)

add_executable(consume_features main.cu)
target_link_libraries(consume_features PRIVATE consume_features_lib)

target_compile_options(consume_features_lib PUBLIC $<$<COMPILE_LANGUAGE:CUDA>:-arch=sm_30>)
